package com.leen.admin.repository;


import com.leen.admin.entity.Admin;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.CrudRepository;

/**
 * 类说明
 *
 * @author admin
 * @date 2021-05-11
 */
public interface AdminRepository extends CrudRepository<Admin,Integer>, JpaSpecificationExecutor<Admin> {

    /**
     * 根据用户名或电话号码登录
     * @param loginName
     * @param mobile
     * @return
     */
    Admin findByLoginNameOrMobile(String loginName,String mobile);

}
